import request from '@/utils/request'

// 查询录音故事列表
export function listVoice_story(query) {
  return request({
    url: '/ora/voice_story/list',
    method: 'get',
    params: query
  })
}

// 查询录音故事详细
export function getVoice_story(id) {
  return request({
    url: '/ora/voice_story/' + id,
    method: 'get'
  })
}

// 新增录音故事
export function addVoice_story(data) {
  return request({
    url: '/ora/voice_story',
    method: 'post',
    data: data
  })
}

// 修改录音故事
export function updateVoice_story(data) {
  return request({
    url: '/ora/voice_story',
    method: 'put',
    data: data
  })
}

// 删除录音故事
export function delVoice_story(id) {
  return request({
    url: '/ora/voice_story/' + id,
    method: 'delete'
  })
}
